﻿namespace Rmq.Center
{
    public class OrderUnpickupingMsg
    {
        /// <summary>
        /// 订单类型
        /// </summary>
        public OrderType OrderType { get; set; }

        /// <summary>
        /// 订单Id
        /// </summary>
        public int OrderId { get; set; }       
    }

    public class OrderUnpickupingProducer : BaseProducer<OrderUnpickupingMsg>
    {
        public OrderUnpickupingProducer()
            : base(Const.RoutingKeys.OrderUnpickuping)
        {
        }
    }

    public class OrderUnpickupingConsumer : BaseConsumer<OrderUnpickupingMsg>
    {
        public OrderUnpickupingConsumer()
            : base(Const.QueueNames.OrderUnpickuping, Const.RoutingKeys.OrderUnpickuping)
        { }
    }
}